package com.asion.vmovie.ui.MVPPresenter;

import com.asion.vmovie.beans.DetialsBean;
import com.asion.vmovie.ui.MVPContract.PingDaoDetialContract;

/**
 * Created by asion on 16-10-19.
 */

public class PingDaoDetialPresenter extends PingDaoDetialContract.Presenter {
    @Override
    public void getPingDaoDetialData(int p, int size, String cateid) {
        mModel.getPingDaoDetialData(p, size, cateid, new PingDaoDetialContract.OnGetPingDaoDetialSuccess() {
            @Override
            public void onGetSuccess(DetialsBean detialsBean) {
                mView.showDataSuccess(detialsBean);
            }

            @Override
            public void onGetError(Throwable throwable) {
                mView.showDataError(throwable);
            }
        });
    }
}
